import request from '@/utils/request.js'

//分页查询列表
export function listBrands(query) {
    return request({

        url: 'product/brand/list',
        params: query,
        method: 'GET'

    })
}

export function delBrand(ids) {
    return request({

        url: `product/brand/${ids}`,
        params: ids,
        method: 'DELETE'

    })
}

export function saveBrand(brand) {
    return request({

        url: 'product/brand',
        data: brand,
        method: 'POST'

    })

}

export function getBrandById(id) {
    return request({

        url: `product/brand/${id}`,

        method: 'GET'

    })

}

export function updateBrand(brand) {
    return request({

        url: 'product/brand',
        data: brand,
        method: 'PUT'


    })

}

export function listAllBrands() {
    return request({

        url: 'product/brand',

        method: 'GET'


    })

}



